Each system routine that processes keywords is required to define a structure variable into which IDL_KWProcessByOffset() will store all the results of keyword processing. This variable must follow the following rules:
Hence, all system routines that process keywords will contain statements similar to the following:
typedef struct {
IDL_KW_RESULT_FIRST_FIELD;
/* Must be first entry in struct */
… /* Additional user specified fields */
} KW_RESULT;
KW_RESULT kw;
All fields within the KW_RESULT structure after the required first field can have arbitrary user selected names. The types of these fields are dictated by the IDL_KW_PAR and IDL_KW_ARR_DESC_R structures that refer to them.